package com.hongyun.tms.common.dto.mwork;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 船舶 新增参数
 * @author liPeng
 * @date 2024-05-31
 **/
@Data
public class MWorkItemSaveReqDto implements Serializable {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "作业项目")
    @NotBlank(message = "作业项目不能为空")
    @Size(max = 20, message = "作业项目不能超过20个字符")
    private String workItem;

    @ApiModelProperty(value = "作业类型代码，字典")
    @NotBlank(message = "作业类型代码不能为空")
    private String workTypeCode;

    @ApiModelProperty(value = "作业类型")
    private String workTypeName;
}

